<?php

/**
 * 栏目定义
 */
Route::get('application/muticolumns', ['as'=> 'application.muticolumns.index', 'uses' => 'Application\MuticolumnController@index']);
Route::post('application/muticolumns', ['as'=> 'application.muticolumns.store', 'uses' => 'Application\MuticolumnController@store']);
Route::get('application/muticolumns/create', ['as'=> 'application.muticolumns.create', 'uses' => 'Application\MuticolumnController@create']);
Route::put('application/muticolumns/{muticolumns}', ['as'=> 'application.muticolumns.update', 'uses' => 'Application\MuticolumnController@update']);
Route::patch('application/muticolumns/{muticolumns}', ['as'=> 'application.muticolumns.update', 'uses' => 'Application\MuticolumnController@update']);
Route::delete('application/muticolumns/{muticolumns}', ['as'=> 'application.muticolumns.destroy', 'uses' => 'Application\MuticolumnController@destroy']);
Route::get('application/muticolumns/{muticolumns}', ['as'=> 'application.muticolumns.show', 'uses' => 'Application\MuticolumnController@show']);
Route::get('application/muticolumns/{muticolumns}/edit', ['as'=> 'application.muticolumns.edit', 'uses' => 'Application\MuticolumnController@edit']);

// 栏目数据编辑
Route::get('application/muticolumns/datas/view', ['as'=> 'application.muticolumns.datas.views', 'uses' => 'Application\MuticolumnController@dataView']);


// 栏目节目数据编辑
Route::get('application/muticolumns/asset_datas/view', ['as'=> 'application.muticolumns.add_asset_data', 'uses' => 'Application\MuticolumnController@addAssetData']);
// 渲染datatable数据
Route::post('application/muticolumns/asset_type/asset_datas',['as'=>'application.muticolumns.asset_datas','uses'=>'Application\MuticolumnController@getDataByAssetType']);
// 保存推荐数据
Route::post('application/muticolumns/asset_type/asset_datas/store',['as'=>'application.muticolumns.asset_datas.store','uses'=>'Application\MuticolumnController@assetDataStore']);


// 从栏目节目数据中选择栏目推荐数据
Route::get('application/muticolumns/column/asset_datas/view', ['as'=> 'application.muticolumns.column.add_asset_data', 'uses' => 'Application\MuticolumnController@addColumnAssetData']);
// 渲染datatable数据
Route::post('application/muticolumns/column/asset_type/asset_datas',['as'=>'application.muticolumns.column.asset_datas','uses'=>'Application\MuticolumnController@getColumnDataByAssetType']);
// 保存推荐数据
Route::post('application/muticolumns/column/asset_type/asset_datas/store',['as'=>'application.muticolumns.column.asset_datas.store','uses'=>'Application\MuticolumnController@columnAssetDataStore']);
// 查看栏目定义栏目数据
Route::get('application/muticolumns/column/{muticolumn_id}/asset_datas/content', ['as'=> 'application.muticolumns.column.content', 'uses' => 'Application\MuticolumnController@assetContentView']);

// 根据栏目节目已选数据
Route::post('application/muticolumns/asset_datas/selected', ['as'=> 'application.muticolumns.asset_datas.selected', 'uses' => 'Application\MuticolumnController@getSelectedAssets']);
// 删除已选中媒资
Route::post('application/muticolumns/asset_datas/delete', ['as'=> 'entity.column.asset_datas.delete', 'uses' => 'Application\MuticolumnController@deleteAsset']);




